package com.magic.zhixin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;

@Data
@Entity
@ApiModel("用户问题回答记录")
public class UserQuestionAnswer extends BaseEntity {
    @ApiModelProperty("回答用户ID")
    private Long userId;
    @ApiModelProperty("提问用户问题ID")
    private Long userQuestionId;
    @ApiModelProperty("提问用户问题ID")
    private Long questionTitle;
    private String avatar;
    private String nickName;
    @Column(columnDefinition = "double(4,3) NOT NULL")
    private Double rightRate = 0D;
    @Column(columnDefinition = "double(5,2) NOT NULL")
    private BigDecimal prize = BigDecimal.ZERO;

}
